package com.qf.kdgroup.gdbackend.mapper;

import com.qf.kdgroup.gdbackend.entity.Auth;
import com.qf.kdgroup.gdbackend.entity.RoleAuth;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleAuthMapper {
    int deleteByPrimaryKey(Long raid);

    int insert(RoleAuth record);

    int insertSelective(RoleAuth record);

    RoleAuth selectByPrimaryKey(Long raid);

    int updateByPrimaryKeySelective(RoleAuth record);

    int updateByPrimaryKey(RoleAuth record);

    void addByList(List<RoleAuth> roleAuths);

    void deleteByRoleId(Long roleid);

    List<RoleAuth> selectListByRoleId(Long roleid);

    List<RoleAuth> selectListByAuthId(Long authid);

    List<Auth> selectListByRoleIdWithAuth(Long roleid);
}